<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{    
	protected function _initRouter()
	{
		$frontcontroller = Zend_Controller_Front::getInstance();
		$router = $frontcontroller->getRouter('router');
		$router->addRoute(
			'quemsomos',
			new Zend_Controller_Router_Route('quemsomos', array(
				'controller' => 'index',
				'action'    => 'index',
				'pageid'	=> 'quemsomos'
			))
		);
		$router->addRoute(
			'servicos/:pagesid',
			new Zend_Controller_Router_Route('servicos/:pagesid', array(
				'controller' => 'index',
				'action'    => 'index',
				'pageid'	=> 'servicos',
				'pagesid'	=> 'limpezaposobra'
			))
		);
		$router->addRoute(
			'galeria',
			new Zend_Controller_Router_Route('galeria', array(
				'controller' => 'index',
				'action'    => 'index',
				'pageid'	=> 'galeria'
			))
		);
		$router->addRoute(
			'contato',
			new Zend_Controller_Router_Route('contato', array(
				'controller' => 'index',
				'action'    => 'index',
				'pageid'	=> 'contato'
			))
		);
	}
	
	protected function _initDoctype()
    {
		$this->bootstrap('view');
        $view = $this->getResource('view');
        $view->doctype('XHTML1_STRICT');
    }
}

